<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/JuventudeSlz/controller/ControleParticipante.php'; ?>
<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/JuventudeSlz/controller/ControleServico.php'; ?>
<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/JuventudeSlz/controller/ControleInscricao.php'; ?>
<?php
session_start();
$usuario_logado = $_SESSION['current_user'];
if ($usuario_logado['nivel'] == '0')
    System::showSimpleView("homepage");

$op = "";
$filter = "";

if (isset($_GET['option'])) {
    $op = $_GET['option'];
}

if (isset($_GET['filter'])) {
    $filter = $_GET['filter'];
}
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Painel de Controle</title>

        <!-- FONTES -->
        <link href='http://fonts.googleapis.com/css?family=Oswald:400,300' rel='stylesheet' type='text/css'/>
        <link href='http://fonts.googleapis.com/css?family=Abel|Satisfy' rel='stylesheet' type='text/css'/>

        <link href="../css/estilo2.css" rel="stylesheet" type="text/css"/>
        <link href="../css/jquery-ui.css" rel="stylesheet" type="text/css"/>
        <link href="../css/painel_admin.css" rel="stylesheet" type="text/css"/>


        <!-- SCRIPTS-->
        <script src="../script/jquery-1.8.3.js"></script>
        <script src="../script/jquery.cycle.all.js"></script>   
        <script src="../script/jquery-ui.js"></script>
        <script type="text/javascript">
           
            $(function(){                
                $( "#menu" ).menu();                
                $('#header-img').cycle();
            });        
            
            
        </script>        
    </head>

    <body>
        <?php include("layout/topo.php"); ?>
        <div id="page">          
            <p id="titulo"> Area Administrativa</p>
            <div id="page-generic">               
                <ul id="menu">
                    <p style="background-color:#e6e6e6; "> Acamps 2013</p>
                    <li><a>Pré-Inscrições</a>
                        <ul>
                            <li><a href="painel_admin.php?option=pre-inscricao-participante">Participantes</a></li>
                            <li><a href="painel_admin.php?option=pre-inscricao-servico">Serviço</a></li>
                        </ul>
                    </li>

                    <li><a href="painel_admin.php?option=inscricao-participante&filter=ativas">Inscricoes</a>
                    </li>
                    <p style="background-color:#e6e6e6; "> Busca personalizada</p>
                    <li><a href="painel_admin.php?option=inscricao-participante&filter=homens">Apenas Homens</a></li>
                    <li><a href="painel_admin.php?option=inscricao-participante&filter=mulheres">Apenas Mulheres</a></li>
                    <li><a href="painel_admin.php?option=inscricao-participante&filter=need_trans">Transporte para o Acampamento</a></li>
                    <li><a href="painel_admin.php?option=inscricao-participante&filter=dowill_eucaristia">Eucaristia</a></li>
<!--                    <li><a href="painel_admin.php?option=inscricao-participante&filter=has_ale_ali">Alergia Alimentos</a></li>-->
<!--                    <li><a href="painel_admin.php?option=inscricao-participante&filter=has_ale_med">Alergia Medicamentos</a></li>-->
                    <p style="background-color:#e6e6e6; ">Sistema</p>
                    <li><a href="" id="menu-usuario"> Usuários </a></li>
                </ul>
                <div id="page-session-select">
                    <?php
                    if ($op == 'pre-inscricao-participante') {
                        include ("dialogs/participantes.php");
                    } else if ($op == 'pre-inscricao-servico') {
                        include ("dialogs/servicos.php");
                    } else if ($op == "inscricao-participante" && $filter == "ativas") {
                        include ("dialogs/inscricoes_ativas.php");
                    }else if ($op == "inscricao-participante" && $filter == "homens") {
                        include ("dialogs/inscricoes_ativas_homens.php");
                    }else if ($op == "inscricao-participante" && $filter == "mulheres") {
                        include ("dialogs/inscricoes_ativas_mulheres.php");
                    }else if ($op == "inscricao-participante" && $filter == "need_trans") {
                        include ("dialogs/inscricoes_ativas_need_trans.php");
                    }else if ($op == "inscricao-participante" && $filter == "dowill_eucaristia") {
                        include ("dialogs/inscricoes_ativas_doEuc.php");
                    }
                    ?>
                </div>
            </div>
        </div>
        <?php include("layout/rodape.php"); ?>
    </body>
</html>
